package com.ms.es.sql;

import java.util.ArrayList;
import java.util.List;

import com.ms.common.utils.GsonUtil;


public class Columns {

	private ColumnInfo columns;

	public ColumnInfo getColumns() {
		return columns;
	}

	public void setColumns(ColumnInfo columns) {
		this.columns = columns;
	}

	public static void main(String[] args) {

		List<ColumnInfo> test= new ArrayList<>();
		test.add(new ColumnInfo());
		test.add(new ColumnInfo());
		test.add(new ColumnInfo());
		test.add(new ColumnInfo());
		System.out.println(GsonUtil.obj2String(test));
		
		EsSqlResult result=new EsSqlResult();
		result.getColumns().add(new ColumnInfo() );
		result.getColumns().add(new ColumnInfo() );
		result.getRows().add(new Object[] {1,2});
		System.out.println(GsonUtil.obj2String(result));

	}
	
	
	

}
